package com.eco.fanliapp.utils;

import org.apache.commons.lang3.exception.ExceptionUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class ExceptionUtil {

    public static void errorMsg(Class cls , Exception e) {
        Logger logger =      LoggerFactory.getLogger(cls.getName());
        logger.error(cls.getName()+"=====异常信息========"+ExceptionUtils.getStackTrace(e));
    }

    public static void infoMsg(Class cls , String info) {
        Logger logger =      LoggerFactory.getLogger(cls.getName());
        logger.error(cls.getName()+"=========="+info);
    }

}
